﻿using Lrd.Permissions.Core;
using Lrd.Permissions.Identity;
using System;
using System.Collections.Generic;
using System.Text;

namespace LrdPermissions.EntityConfiguration.Identity
{
    /// <summary>
    /// 用户仓储
    /// </summary>
    public class UserStore : UserStoreBase<User, Guid, UserClaim, UserLogin, UserToken, Role, Guid, UserRole>
    {
        /// <summary>
        /// 初始化一个<see cref="UserStoreBase{TUser, TUserKey, TUserClaim, TUserLogin, TUserToken, TRole, TRoleKey, TUserRole}"/>类型的新实例
        /// </summary>
        /// <param name="userRepository">用户仓储</param>
        /// <param name="userLoginRepository">用户登录仓储</param>
        /// <param name="userClaimRepository">用户声明仓储</param>
        /// <param name="userTokenRepository">用户令牌仓储</param>
        /// <param name="roleRepository">角色仓储</param>
        /// <param name="userRoleRepository">用户角色仓储</param>
        /// <param name="eventBus">事件总线</param>
        public UserStore(
            
            IRepository<User, Guid> userRepository,
            IRepository<UserLogin, Guid> userLoginRepository,
            IRepository<UserClaim, Guid> userClaimRepository,
            IRepository<UserToken, Guid> userTokenRepository,
            IRepository<Role, Guid> roleRepository,
            IRepository<UserRole, Guid> userRoleRepository)
            : base(userRepository, userLoginRepository, userClaimRepository, userTokenRepository, roleRepository, userRoleRepository)
        { }
    }
}
